import org.newdawn.slick.Color;




public class Player 
{
	public static final int LEFT = 1, RIGHT = 2, NOT_ATTRIBUED = 3;
	private Color color;
	private int leftKey, rightKey;

	public Player(Color c, int leftKey, int rightKey)
	{
		this.color = c;
		this.leftKey = leftKey;
		this.rightKey = rightKey;
	}

	public int keyValue(int key)
	{
		if(key==leftKey)
			return Player.LEFT;
		else if(key == rightKey)
			return Player.RIGHT;
		else
			return Player.NOT_ATTRIBUED;
	}
	
	public Color getColor() {
		return color;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	public int getLeftKey() {
		return leftKey;
	}

	public int getRightKey() {
		return rightKey;
	}
	
}
